package com.hanoi.wiki.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hanoi.wiki.model.json.CoordinatesJson;
import com.hanoi.wiki.model.json.ResponseJsonObject;

@RequestMapping("")
public interface CoordinatesController extends BaseController{
	@RequestMapping(value = "/create", method = RequestMethod.POST)
	public @ResponseBody ResponseJsonObject saveCoordinates(@RequestBody CoordinatesJson coordinates);
	
	@RequestMapping(value = "/remove/{id}", method = RequestMethod.GET)
	public @ResponseBody ResponseJsonObject removeCoordinates(@PathVariable int id);
	
	@RequestMapping(value = "/update", method = RequestMethod.POST)
	public @ResponseBody ResponseJsonObject updateCoordinates(@RequestBody CoordinatesJson coordinates);
	
	@RequestMapping(value = "/detail/{id}", method = RequestMethod.GET)
	public @ResponseBody ResponseJsonObject getCoordinates(@PathVariable int id);
	
	@RequestMapping(value = "/all", method = RequestMethod.GET)
	public @ResponseBody ResponseJsonObject getCoordinatesList();
}
